<%@ page language="java" import="java.util.*,java.text.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
	String time=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Calendar.getInstance().getTime());
%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/style.css" />
	<script src="<%=basePath %>/dist/libs/jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
		function back(){
			window.location.href="chance!getList.action";
		}
	</script>
	<style type="text/css">
    body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }
    </style>
  </head>
  
  <body>
<form action="chance!addChance.action" method="post" class="definewidth m20">
<font style="font-size:20px;font-weight:900;">新增销售机会</font>
<table class="table table-bordered table-hover m10">
    <tr>
    <!--  <td width="10%" class="tableleft">上级</td>
        <td>
            <select name="parentid">
            <option value="0">一级菜单</option><option value='1'/>&nbsp;系统管理</option><option value='7'   />&nbsp;明信片管理</option>            </select>
        </td>-->
        <td class="tableleft">客户名称</td>
        <td><input type="text" name="name"/></td>
    </tr>
    <tr>
        <td class="tableleft">联系人</td>
        <td><input type="text" name="link_name"/></td>
    </tr>
    <tr>
        <td class="tableleft">联系人电话</td>
        <td><input type="text" name="link_phone"/></td>
    </tr>
    <tr>
        <td class="tableleft">成功几率</td>
        <td><input type="text" name="success_rate"/></td>
    </tr>
    <tr>
        <td class="tableleft">机会来源</td>
        <td><textarea  name="source"/></textarea></td>
    </tr>
    <tr>
        <td class="tableleft">概要</td>
        <td><textarea  name="about"/></textarea></td>
    </tr>
    <tr>
        <td class="tableleft">机会描述</td>
        <td><textarea  name="detail"/></textarea></td>
    </tr>
    <!--     <tr>
        <td class="tableleft">状态</td>
        <td>
            <input type="radio" name="status" value="0" checked/> 启用
            <input type="radio" name="status" value="1"/> 禁用
        </td>
    </tr> -->
    <tr>
        <td class="tableleft">创建人</td>
        <td><input type="text" name="builder_chance" value='<s:property value="#request.builder_chance"/>' readonly/></td>
    </tr>
    <tr>
        <td class="tableleft">创建时间</td>
        <td><input type="text" name="build_time" value="<%=time%>" readonly></td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <button type="submit" class="btn btn-primary" type="button" onclick="">保存</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid" onclick="back();">返回列表</button>
        </td>
    </tr>
</table>
</form>
</body>
</html>

